package com.bookshop.dao;

import com.bookshop.model.BookModel;
import com.bookshop.vo.BooksVo;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("ibookdao")
public interface IBookDao {
    public List<BooksVo> findAllBook();
    public List<BooksVo> findAllBooksById(int catalogId);
    public List<BooksVo> findAllBooksByName(String bookname);

    void addBook(BookModel book);

    BookModel findBookById(String bookId);

    void updateBook(BookModel book);

    void deleteBookById(String bookId);
}
